.global main 

.data 
numbers: .word 70007 7 
spork: .string "Spatula City"

.text
main:
	ori $t0 $zero numbers
	ld $g0 $t0
	addi $t0 $t0 1
	ld $g1 $t0
	div $g0 $g0 $g1
	cali $sp print_number
	cali $sp print_newline
	ori $g0 $zero spork
	main_loop:
		ld $t0 $g0
		wr $t0 1
		addi $g0 $g0 1
		ji $t0 main_loop
	cali $sp print_newline
	hlt

# no arguments
print_newline:
	ori $t0 $zero 10
	wr $t0 1
	j $sp $ra

